import request from '@/utils/request'

export function listequipmentState(query) {
  return request({
    url: '/equipment/equipmentState/list',
    method: 'get',
    params: query
  })
}

export function createequipmentState(data) {
  return request({
    url: '/equipment/equipmentState/create',
    method: 'post',
    data
  })
}

export function readequipmentState(data) {
  return request({
    url: '/equipment/equipmentState/get/' + data.id,
    method: 'get'
  })
}

export function updateequipmentState(data) {
  return request({
    url: '/equipment/equipmentState/update',
    method: 'post',
    data
  })
}

export function deleteequipmentState(data) {
  return request({
    url: '/equipment/equipmentState/delete/' + data.fstateno,
    method: 'delete'
  })
}
